import request from '@/utils/request'

// 查询课程评论列表
export function listCourse_comment(query) {
  return request({
    url: '/teach/course_comment/list',
    method: 'get',
    params: query
  })
}

// 查询课程评论详细
export function getCourse_comment(id) {
  return request({
    url: '/teach/course_comment/' + id,
    method: 'get'
  })
}

// 新增课程评论
export function addCourse_comment(data) {
  return request({
    url: '/teach/course_comment',
    method: 'post',
    data: data
  })
}

// 修改课程评论
export function updateCourse_comment(data) {
  return request({
    url: '/teach/course_comment',
    method: 'put',
    data: data
  })
}

// 删除课程评论
export function delCourse_comment(id) {
  return request({
    url: '/teach/course_comment/' + id,
    method: 'delete'
  })
}
